<template>
  <div class="container">
    <h2>开团成功</h2>
    <p>恭喜您已经成功开启“{{ detail.title }}”自己的团</p>
    <div class="top">
      <img :src="detail.avatar" alt="" />
      <h3>{{ detail.nickname }}</h3>
    </div>
    <h4 class="title">我的团 {{ detail.total }}</h4>

    <h2>添加客服</h2>
    <p>长按二维码，可以添加客服了解更多详情哟</p>
    <img :src="detail.qrcode" alt="" class="qrcode" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      detail: "",
    };
  },
  mounted() {
    this.detail = JSON.parse(localStorage.data);
  },
  methods: {},
};
</script>

<style scoped>
.container {
  width: 100%;
  min-height: 100vh;
  background: #f5f5f5;
}
.top {
  height: 240px;
  overflow: hidden;
  background: #fff;
}
.top img {
  width: 100px;
  height: auto;
  display: block;
  margin: 20px auto 5px;
  border-radius: 50%;
  overflow: hidden;
}
.top h3 {
  color: #000;
  text-align: center;
  font-size: 16px;
  margin-bottom: 5px;
}
.top h4 {
  font-size: 18px;
  color: #333;
  text-align: center;
}
h2 {
  font-size: 14px;
  color: #333;
  padding: 0 15px;
}
p {
  font-size: 12px;
  color: #666;
  padding: 0 15px;
}
.item {
  background: #fff;
  padding: 10px 10px;
  margin-bottom: 10px;
}
.item-top {
  color: #000;
  font-size: 16px;
  vertical-align: middle;
  position: relative;
  display: flex;
}
.btn-group {
  flex: 1;
  text-align: right;
}
.btn {
  border-radius: 14px;
  padding: 5px 15px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  display: inline-block;
  background: #cc1c24;
}
.avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 15px;
}
.qrcode {
  width: 200px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.item p,
.item .p {
  color: #333;
  font-size: 14px;
  overflow: hidden;
}
.item .date {
  display: block;
  float: right;
}
.money {
  color: #cc1c24;
}
.inners {
  background: #fff;
  padding: 10px 15px;
}
.inners p {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 20pxs;
}
.share-btn {
  height: 60px;
  line-height: 60px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  font-size: 18px;
  color: #ffffff;
  background: #cc1c24;
}
.title {
  height: 50px;
  line-height: 50px;
  text-align: left;
  font-size: 14px;
  padding: 0 15px;
  color: #333;
  background: #fff;
  border-left: #cc1c24 4px solid;
  margin: 10px 0 0;
}
.nodata {
  padding: 10px;
}
.contents {
  padding: 0 20px;
  overflow: hidden;
}
.contents h1 {
  font-size: 16px;
  text-align: center;
}
.btns {
  width: 140px;
  text-align: center;
  height: 35px;
  line-height: 35px;
  border-radius: 4px;
  background: #cc1c24;
  color: #fff;
  margin: 5px auto 20px;
}
</style>